<!-- 公用部分开始 -->

<!-- ["姓名","学号","年龄"] -->
<!-- list表格头 -->
<script id="table-thead-template" type="text/x-handlebars-template">	
	{{#each this}}
		<th>{{this}}</th>
	{{/each}}
</script>
   
<!-- 
	[{
		type:"success",
		size:"S",
		markClass:"",
		iconFont:"",
		name:""
	},{}] 
-->  
<!-- 文字图标按钮模板 -->
<script id="btn-text-template" type="text/x-handlebars-template">
    {{#each this}}
		{{#if select}}
        <span class="select-box radius" style="width:40%;">
            <select class="select {{markClass}}" size="1" id="{{id}}">
                {{#with option}}
                {{#each this}}
                    <option value="{{value}}" {{selected}}>{{text}}</option>
                {{/each}}
                {{/with}}
            </select>
        </span>{{#if embellish}}{{{embellish}}}{{/if}}
		{{else}}
            {{#if children}}
                <span class="dropDown dropDown_hover"> <a class="btn btn-{{type}} radius size-{{size}} dropDown_A" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"><i class="Hui-iconfont {{iMarkClass}}">{{{iconFont}}}</i> {{name}}</a>
                    <ul class="dropDown-menu menu radius box-shadow">
                        {{#each children}}
                            <li><a href="javascript:;" id="{{id}}">{{name}}</a></li>
                        {{/each}}
                    </ul>
                </span>
            {{else}}
                <a href="javascript:;" class="btn btn-{{type}} radius size-{{size}} {{markClass}}" id="{{id}}"><i class="Hui-iconfont {{iMarkClass}}">{{{iconFont}}}</i> {{name}}</a>
            {{/if}}
    	{{/if}}
	{{/each}}
</script>


<!-- 
[{
	title:"",
	markClass:"",
	iconFont:""	
},{}]
 -->
<!-- 图标按钮模板 -->
<script id="btn-icon-template" type="text/x-handlebars-template">
    {{#each this}}
		<a style="text-decoration:none" class="ml-5 {{markClass}}" href="javascript:;" title="{{title}}" id="{{id}}"><i class="Hui-iconfont" style="font-size:16px;">{{{iconFont}}}</i></a> 
    {{/each}}
</script>

<!-- 说明面板 -->
<script id="explanation-mark-panel" type="text/x-handlebars-template">
<article class="page-container">
<div class="panel panel-{{{ inputValue style 'default' }}}">
	<div class="panel-header">{{{ inputValue title '说明' }}}</div>
	<div class="panel-body">{{{ content }}}</div>
</div>
</article>
</script> 
 
<!-- 高级查询表单 -->
<script id="advanced-query-form" type="text/x-handlebars-template">
<article class="page-container">
<form action="" method="post" class="form form-horizontal" id="advanced-query-form">
	{{#each this}}
	<div class="row cl">
		{{#each this}}		
		<div class="formControls col-xs-6 col-sm-6"><strong>{{label}}:</strong>
			{{#if input}}
				<input type="text" class="input-text" id="{{name}}" name="{{name}}" value="{{value}}" {{#if datetime}}query-datetime="true"{{/if}} {{#if datatype}}datatype="{{datatype}}"{{/if}} >
			{{/if}}
			{{#if select}}
				<span class="select-box radius">
				  <select class="select" size="1" id="{{name}}" name="{{name}}" value={{value}}>
					<option value="">全部</option>
				  	{{#with option}}
					{{#each this}}
						<option value="{{value}}">{{text}}</option>
					{{/each}}
					{{/with}}
				  </select>
				</span>
			{{/if}}
		</div>
		{{/each}}
	</div>
	{{/each}}	
	<div class="row cl">
		<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
			<button class="btn btn-primary radius" type="button" id="submit-advanced-query"><i class="Hui-iconfont">&#xe665;</i>查询</button>
			<button class="btn btn-warning radius" type="button" id="submit-advanced-query-reset">&nbsp;&nbsp;显示全部&nbsp;&nbsp;</button>
			<button class="btn btn-default radius" type="button" onclick="saveFormValue(advancedQueryParameters);layer.close(currIndex);">&nbsp;&nbsp;关闭&nbsp;&nbsp;</button>
		</div>
	</div>
</form>	
</article>
</script>   
   
<!-- edit页面各表单控件模板 -->  
<script id="form-control-template" type="text/x-handlebars-template">
	<article class="page-container">
	<form action="" method="post" class="form form-horizontal" id="form-edit">
	{{#each this}}
		{{#if label}}
		<div class="row cl {{#if edit}}editFlag{{/if}} {{#if add}}addFlag{{/if}}" {{#if edit}}style="display: none"{{/if}}>
			<label class="form-label col-xs-4 col-sm-3">{{#if reminder}}<a style="text-decoration: none;" href="javascript:layer.alert('{{reminder}}', {title:'提示', shadeClose:'true',offset:'120px',icon:0});"><i class="Hui-iconfont" style="color:green;">&#xe6cd;</i></a>{{/if}}{{#if required}}<span class="c-red">*</span>{{/if}}{{{label}}}: </label>		
			<div class="formControls col-xs-8 col-sm-9">	
				{{#if objText}}
					<span id="{{objText}}"></span>
				{{/if}}	
				{{#if input}}	
				{{#each input}}				
					<input type="{{#if hidden}}hidden{{else}}text{{/if}}" class="input-text radius" id="{{name}}" name="{{name}}"
						{{#if value}}value='{{value}}'{{/if}} {{#if placeholder}}placeholder="{{placeholder}}"{{/if}}>{{#if embellish}}{{{embellish}}}{{/if}}					
				{{/each}}	
				{{/if}}										
				{{#if select}}					
				{{#each select}}					
					<span class="select-box radius" style="width:400px;">
			  			<select class="select" size="1" id="{{name}}" name="{{name}}">
							{{#with option}}
							{{#each this}}
								<option value="{{value}}" {{selected}}>{{text}}</option>
							{{/each}}
							{{/with}}
			  		 	</select>
             		 </span>{{#if embellish}}{{{embellish}}}{{/if}}				
				{{/each}}
				{{/if}}	
				{{#if button}}						
				{{#each button}}					
					<input type="button"  class="btn btn-{{style}} radius {{markClass}} size-S"  value="{{value}}" id="{{name}}"/>{{#if embellish}}{{{embellish}}}{{/if}}					
				{{/each}}
				{{/if}}	
				{{#if textarea}}			
				{{#each textarea}}					
					<textarea {{#if disabled}}disabled="{{disabled}}"{{/if}} class="textarea radius" {{#if placeholder}}placeholder="{{placeholder}}"{{/if}} id="{{name}}" name="{{name}}" {{#if value}}value="{{value}}"{{/if}}></textarea>{{#if embellish}}{{{embellish}}}{{/if}}
				{{/each}}	
				{{/if}}								
			</div>
		</div>	
	{{else}}
		<input type="hidden" id="{{name}}" name="{{name}}" {{#if value}}value='{{value}}'{{/if}}/>
	{{/if}}
	{{/each}}
	<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
				<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">&nbsp;&nbsp;<input class="btn btn-primary radius" type="button" onclick="layer.closeAll('page');" value="&nbsp;&nbsp;返回&nbsp;&nbsp;">
			</div>
	</div>
	</form>	
</article>
</script>
<!-- 公用部分结束 -->


<!-- autoTest -->
<script id="show-test-set" type="text/x-handlebars-template">
	<div style="padding:20px;">
	<table class="table table-border table-bordered table-bg">
		<thead>
			<tr class="text-c">
				<th width="15%">ID</th>
				<th width="50%">名称</th>
				<th width="10%">测试场景数</th>
				<th width="10%">组合场景数</th>
				<th width="15%">操作</th>
			</tr>
		</thead>
		<tbody>	
			{{#each this}}
			<tr class="text-c">
				<td>{{setId}}</td>
				<td class="ellipsis"><span title="{{setName}}">{{setName}}</span></td>
				<td>{{sceneNum}}</td>
				<td>{{complexSceneNum}}</td>
				<td><a href="javascript:;" onclick="batchTest('{{setId}}');" class="btn btn-danger size-S radius">执行测试</a></td>
			</tr>
			{{/each}}
		</tbody>		
	</table>	
	</div>
</script>
<!-- interfaceProbe -->
<script id="interface-probe-setting-config" type="text/x-handlebars-template">
	<div class="page-container">
		<form action="post" method="" class="form form-horizontal" id="interface-probe-setting-config-form">
			<input type="hidden" name="probeId" id="probeId" value="{{probeId}}">
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">探测间隔时间(秒)</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text radius" name="config.intervalTime" id="intervalTime" value='{{{inputValue intervalTime 3600}}}' placeholder="最小30s,最大86400s">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">最大调用次数</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text radius" name="config.maxCallTime" id="maxCallTime" value='{{{inputValue maxCallTime "-1"}}}' placeholder="输入-1代表无限制">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">探测持续时间(小时)</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text radius" readonly="readonly" name="config.maxDurationTime" id="maxDurationTime" value='{{{inputValue maxDurationTime "-1"}}}' placeholder="输入-1代表无限制">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">最大响应时间(毫秒)</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text radius" name="config.maxResponseTime" id="maxResponseTime" value='{{{inputValue maxResponseTime 5000}}}'>
				</div>
			</div>
			<!--<div class="row cl">-->
				<!--<label class="form-label col-xs-4 col-sm-3">添加自定义Header</label>-->
				<!--<div class="formControls col-xs-8 col-sm-9">-->
						<!--<span class="select-box radius">-->
			 				<!--<select class="select" size="1" id="addHeaderFlag" name="config.addHeaderFlag" value="{{{inputValue addHeaderFlag "0"}}}">-->
									<!--<option value="0">不添加</option>-->
									<!--<option value="1">添加</option>-->
			  				<!--</select>-->
						<!--</span>-->
				<!--</div>-->
			<!--</div>-->
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">通知方式</label>
				<div class="formControls col-xs-8 col-sm-9">
						<span class="select-box radius">
			 				<select class="select" size="1" id="notifyType" name="config.notifyType" value="{{{inputValue notifyType "0"}}}">
									<option value="0">不通知</option>
									<option value="1">站内信</option>		
									<option value="2">站内信和邮件</option>
                                    <!--<option value="3">站内信和短信</option>-->
			  				</select>
						</span>
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">何种级别时进行通知</label>
				<div class="formControls col-xs-8 col-sm-9">
						<span class="select-box radius">
			 				<select class="select" size="1" id="notifyLevel" name="config.notifyLevel" value="{{{inputValue notifyLevel "3"}}}">
									<option value="1">ExcellentLevel(优秀的)</option>
									<option value="2">NormalLevel(正常的)</option>
									<option value="3" selected>ProblematicLevel(有问题的)</option>
									<option value="4">SeriousLevel(严重的)</option>
			  				</select>
						</span>
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">邮件收信地址</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text radius" name="config.receiveAddress" id="receiveAddress" value='{{{inputValue receiveAddress ""}}}' placeholder="多条请以逗号分隔">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">邮件抄送地址</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text radius" name="config.copyAddress" id="copyAddress" value='{{{inputValue copyAddress ""}}}' placeholder="多条请以逗号分隔">
				</div>
			</div>
			<!--<div class="row cl">-->
				<!--<label class="form-label col-xs-4 col-sm-3">统计分析周期(小时)</label>-->
				<!--<div class="formControls col-xs-8 col-sm-9">-->
					<!--<input type="text" class="input-text radius" name="config.analysisCycleTime" id="analysisCycleTime" value='{{{inputValue analysisCycleTime 24}}}' placeholder="指定时间周期自动分析探测质量,不小于探测间隔时间">-->
				<!--</div>-->
			<!--</div>		-->
			<div class="row cl">
				<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
					<input class="btn btn-danger radius" type="submit" value="&nbsp;&nbsp;确定保存&nbsp;&nbsp;">
				</div>
			</div>
		</form>
	</div>
</script>

<!-- message -->
<script id="message-process-parameter-setting" type="text/x-handlebars-template">
<article class="page-container">
<form action="" method="post" class="form form-horizontal" id="form-variable-value">
	<div class="row cl">
		<div class="formControls col-xs-9 col-sm-10 col-xs-offset-3 col-sm-offset-2">
			<span class="label label-danger radius"> 提示 </span> 如你不清楚以下参数的具体含义和规则，请仔细阅读 <span class="c-red"> 报文处理类型参数说明 </span>。
		</div>
	</div>
	{{#each this}}
		<div class="row cl">
			<label class="form-label col-xs-5 col-sm-4">{{ @key }}：</label>
			<div class="formControls col-xs-7 col-sm-8">
				<input type="text" id="{{@key}}" class="input-text radius" name="{{@key}}" value='{{{inputValue this ""}}}'>
			</div>
		</div>
	{{/each}}
	<div class="row cl">
		<div class="col-xs-7 col-sm-8 col-xs-offset-5 col-sm-offset-4">
			<button class="btn btn-primary radius" type="button" id="save-process-parameter"><i class="Hui-iconfont">&#xe632;</i>保存</button>
			<button class="btn btn-default radius" type="button" onclick="layer.close(settingLayerIndex);">&nbsp;&nbsp;返回&nbsp;&nbsp;</button>
		</div>
	</div>
</form>	
</article>
</script>

<script id="message-add-call-parameter" type="text/x-handlebars-template">
	<div class="page-container">
		<form action="" method="" class="form form-horizontal">
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">Name</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text radius" id="call-parameter-name" value="{{key}}">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">Value</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text radius" id="call-parameter-value" value="{{value}}">
				</div>
			</div>
			<div class="row cl">
				<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
					<input class="btn btn-danger radius" type="button" value="&nbsp;&nbsp;确定保存&nbsp;&nbsp;" id="save-new-call-parameter">
				</div>
			</div>
		</form>
	</div>
</script>

<!-- messageScene -->
<script id="sort-complex-scenes" type="text/x-handlebars-template">
	<div style="margin:15px;">
		<input class="btn btn-danger radius" type="button" id="save-complex-scenes-sort" value="确认保存"/>
		&nbsp;&nbsp;
		<input class="btn btn-danger radius" type="button" id="reset-complex-scenes-sort" value="还原" />
		<div style="margin-bottom:16px;"></div>
		<ul id="scenes-steps">
			{{#each this}}
				<li style="margin-bottom:10px;" data-id="{{sequenceNum}}"><input class="btn btn-success radius size-M" type="button" value="{{interfaceName}}-{{messageName}}-{{sceneName}}" ></li>
			{{/each}}
		</ul>
	</div>
</script>

<script id="scene-test-result" type="text/x-handlebars-template">
	<table class="table table-bg" style="margin-top:10px;table-layout:auto;">
		<tr>
			<td><strong>请求地址:</strong></td>
			<td>{{requestUrl}}</td>
		</tr>
		<tr>
			<td><strong>测试环境:</strong></td>
			<td>{{businessSystemName}}</td>
		</tr>
        <tr>
            <td><strong>数据池:</strong></td>
            <td>{{poolItemName}}</td>
        </tr>
		<tr>
			<td><strong>标记:</strong></td>
			<td><span class="label label-{{color}} radius">{{flag}}</span></td>
		</tr>
		<tr>
			<td><strong>耗时:</strong></td>
			<td>{{useTime}}ms</td>
		</tr>
		<tr>
			<td><strong>头信息:</strong></td>
			<td><button class="btn btn-primary radius size-S" id="view-http-headers">查看</button></td>
		</tr>
        <tr>
            <td><strong>代理信息:</strong></td>
            <td><button class="btn btn-primary radius size-S" id="view-proxy-info">查看</button></td>
        </tr>
		<tr>
			<td><strong>状态码:</strong></td>
			<td>{{statusCode}}</td>
		</tr>
		<tr>
			<td><strong>测试备注:</strong></td>
			<td></td>
		</tr>
		<tr>
			<td colspan="2"><textarea style="height: 180px;" class="textarea radius">{{mark}}</textarea></td>
		</tr>
		<tr>
			<td><strong>入参:</strong></td>
			<td></td>
		</tr>
		<tr>
			<td colspan="2"><textarea style="height: 180px;" class="textarea radius">{{requestMessage}}</textarea></td>
		</tr>
		<tr>
			<td><strong>出参:</strong></td>
			<td></td>
		</tr>
		<tr>
			<td colspan="2"><textarea style="height: 180px;" class="textarea radius">{{responseMessage}}</textarea></td>
		</tr>		
	</table>
</script>

<script id="scene-test-result-headers" type="text/x-handlebars-template">
	<table class="table table-bg">
		<tr>
			<td colspan="2" style="font-size:14px;color:#FF8400;"><strong>Request Querys:</strong></td>
		</tr>
		<tr>			
			<td colspan="2">{{RequestQuery}}</td>			
		</tr>
		<tr>
			<td colspan="2" style="font-size:14px;color:#FF8400;"><strong>Request Headers:</strong></td>
		</tr>
		{{#each RequestHeader}}
			<tr>
				<td style="font-size:10px;"><strong>{{@key}}</strong></td>
				<td>{{this}}</td>
			</tr>
		{{/each}}
		<tr>
			<td colspan="2" style="font-size:14px;color:#FF8400;"><strong>Response Headers:</strong></td>
		</tr>
		{{#each ResponseHeader}}
			<tr>
				<td style="font-size:10px;"><strong>{{@key}}</strong></td>
				<td>{{this}}</td>
			</tr>
		{{/each}}			
	</table>
</script>
<script id="scene-test-result-proxy" type="text/x-handlebars-template">
    <table class="table table-bg" style="padding: 10px;">
        <tr>
            <td style="font-size:10px;"><strong>代理IP</strong></td>
            <td>{{proxyHost}}</td>
        </tr>
        <tr>
            <td style="font-size:10px;"><strong>代理端口</strong></td>
            <td>{{proxyPort}}</td>
        </tr>
        <tr>
            <td style="font-size:10px;"><strong>用户名</strong></td>
            <td>{{proxyUsername}}</td>
        </tr>
        <tr>
            <td style="font-size:10px;"><strong>密码</strong></td>
            <td>{{proxyPassword}}</td>
        </tr>
    </table>
</script>

<script id="scene-edit-variables" type="text/x-handlebars-template">
	<div class="page-container">
		<form action="" method="" class="form form-horizontal">
			<div class="row cl">
				<label class="form-label col-xs-3 col-sm-2">
                    {{#if use}}
                    要替换的参数名称
                    {{else}}
                    要保存的参数名称
                    {{/if}}
			    </label>
				<div class="formControls col-xs-9 col-sm-10">
					<div class="form-group">
						<input type="text" class="input-text radius" style="width:320px;" id="scene-variables-key" value="{{key}}">
                        {{#if use}}
                        <a href="javascript:void(0);" class="btn btn-primary radius" id="choose-scene-variables-key-req-use">入参节点</a>
                        {{else}}
                        <a href="javascript:void(0);" class="btn btn-primary radius" id="choose-scene-variables-key-req-add">入参节点</a>
                        <a href="javascript:void(0);" class="btn btn-primary radius" id="choose-scene-variables-key-resp-add">出参节点</a>
                        {{/if}}
						<a href="javascript:void(0);" class="btn btn-primary radius" id="choose-header-variables-key">Header节点</a>
						{{#if use}}
							<a href="javascript:void(0);" class="btn btn-primary radius" id="choose-query-variables-key">Query节点</a>
						{{/if}}
                        {{#if add}}
                        <a href="javascript:void(0);" class="btn btn-primary radius" id="choose-scene-variables-key-relation-add">关联规则</a>
                        {{/if}}
					</div>					
				</div>
			</div>
            <div class="row cl">
                <label class="form-label col-xs-3 col-sm-2">
                    {{#if use}}
                    变量/常量
                    {{else}}
                    保存的变量名
                    {{/if}}
                </label>
                <div class="formControls col-xs-9 col-sm-10">
                    <div class="form-group">
                        <input type="text" class="input-text radius" style="width:320px;" id="scene-variables-value" value="{{value}}" {{#if use}}placeholder="可以使用模板变量、常量、上下文变量"{{/if}}>
                        {{#if use}}
                        <a href="javascript:void(0);" class="btn btn-primary radius" id="choose-scene-variables-value">上下文变量</a>
                        {{/if}}
                    </div>
                </div>
            </div>
			<div class="row cl">
				<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
					<input class="btn btn-danger radius" type="button" value="&nbsp;&nbsp;确定保存&nbsp;&nbsp;" id="save-new-varibales">
				</div>
			</div>
		</form>
	</div>
</script>
<script id="scene-show-variables" type="text/x-handlebars-template">
<article class="page-container">
   <form action="" method="" class="form form-horizontal">
	<div class="row cl">
     <label class="form-label col-xs-3 col-sm-2 ">测试环境</label>
     <div class="formControls col-xs-9 col-sm-10">
		<input type="hidden" class="input-text radius" id="systemId" name="systemId" value="{{systemId}}">																																												
		<input type="button" class="btn btn-danger size-S radius" value="选择" id="complex-choose-business-system">
     </div>
    </div>
	<div class="row cl">
     <label class="form-label col-xs-3 col-sm-2" style="cursor: pointer;" id="use-variables">替换变量</label>
     <div class="formControls col-xs-9 col-sm-10">
     {{#each useVariables}}
     	 <span class="label label-default radius edit-this-variables appoint">{{@key}}={{this}}</span><i class="Hui-iconfont del-this-variables appoint" style="margin-right:8px;">&#xe6a6;</i>	
     {{/each}}
     </div>
    </div>
    <div class="row cl">
     <label class="form-label col-xs-3 col-sm-2 " style="cursor: pointer;" id="save-variables">保存变量</label>
     <div class="formControls col-xs-9 col-sm-10">
     {{#each saveVariables}}
     	<span class="label label-default radius edit-this-variables appoint">{{@key}}={{this}}</span><i class="Hui-iconfont del-this-variables appoint" style="margin-right:8px;">&#xe6a6;</i>
     {{/each}}
     </div>
    </div>    
	<div class="row cl">
     <label class="form-label col-xs-3 col-sm-2 ">重试次数</label>
     <div class="formControls col-xs-9 col-sm-10">
		<input type="text" class="input-text radius" id="retryCount" value="{{retryCount}}">
     </div>
    </div>
	<div class="row cl">
     <label class="form-label col-xs-3 col-sm-2 ">测试间隔</label>
     <div class="formControls col-xs-9 col-sm-10">
		<input type="text" class="input-text radius" id="intervalTime" value="{{intervalTime}}">
     </div>
    </div>
	<div class="row cl">
     <label class="form-label col-xs-3 col-sm-2 ">失败处理</label>
     <div class="formControls col-xs-9 col-sm-10">
		<span class="select-box radius">
			  <select class="select" size="1" id="errorExecFlag" value="{{errorExecFlag}}">
			    <option value="0">结束测试</option>
			    <option value="1">执行下一个场景</option>
			    <option value="2">执行最后一个场景</option>
			  </select>
		</span>
     </div>
    </div>
   <div class="row cl">
       <label class="form-label col-xs-3 col-sm-2 ">异步执行</label>
       <div class="formControls col-xs-9 col-sm-10">
            <span class="select-box radius">
                  <select class="select" size="1" id="async" value="{{async}}">
                    <option value="0">否</option>
                    <option value="1">是</option>
                  </select>
            </span>
       </div>
   </div>
   <br>
   <div class="row cl">
       <label class="form-label col-xs-3 col-sm-2 "><span class="badge badge-warning radius">配置说明</span></label>
       <div class="formControls col-xs-9 col-sm-10">
           <p><strong>测试环境：</strong>给当前的场景配置一个指定的测试环境，如果没有配置，默认取第一个。</p>
           <p><strong>替换变量：</strong>使用全局变量、常量、上下文变量来替换该场景的入参节点、请求头或者查询参数，优先级高于测试数据以及测试集公共变量。</p>
           <p><strong>保存变量：</strong>从该场景本次测试的入参、出参、响应头来获取指定节点并保存为指定名称的上下文变量，供替换变量使用。</p>
           <p><strong>重试次数：</strong>测试失败时的重试次数，默认0次。</p>
           <p><strong>测试间隔：</strong>该场景测试完成之好的睡眠时间，默认1秒，单位毫秒。</p>
           <p><strong>失败处理：</strong>该场景测试失败之后的处理。</p>
           <p><strong>异步执行：</strong>异步执行该场景。(所有标注了异步执行的场景都将统一在最后统一并发执行，避免在异步执行的场景中设置保存变量，因为可能在获取之前就被使用了)</p>
           <p style="color:red;"><strong>注意：</strong>设置了异步执行，则 <span class="badge badge-primary radius">测试间隔</span> 、<span class="badge badge-primary radius">失败处理</span> 这两处配置将无效！</p>
       </div>
   </div>
   </form>
</article>
</script>

<!-- setScene/testSet -->
<script id="set-setting-config" type="text/x-handlebars-template">
	<div class="page-container">
        <form class="form form-horizontal" id="form-setting-config">
            <input type="hidden" name="configId" id="configId" value="{{configId}}">
            <div class="row cl">
                <label class="form-label col-xs-5 col-sm-3">连接超时：</label>
                <div class="formControls col-xs-7 col-sm-9">
                    <input type="text" id="connectTimeOut" class="input-text radius" name="connectTimeOut" value="{{connectTimeOut}}">
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-5 col-sm-3">读取超时：</label>
                <div class="formControls col-xs-7 col-sm-9">
                    <input type="text" class="input-text radius" id="readTimeOut" name="readTimeOut" value="{{readTimeOut}}">
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-5 col-sm-3">失败时最大重试次数：</label>
                    <div class="formControls col-xs-7 col-sm-9">
                        <input type="text" class="input-text radius" id="retryCount" name="retryCount" value="{{retryCount}}">
                    </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-5 col-sm-3">测试模式：</label>
                        <div class="formControls col-xs-7 col-sm-9">
                        <span class="select-box radius">
                            <select class="select" size="1" id="runType" name="runType" value="{{runType}}">
                                <option value="0">并行测试</option>
                                <option value="1">串行测试</option>
                            </select>
                        </span>
                        </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-5 col-sm-3"><a style="text-decoration: none;" href="javascript:layer.alert('输入测试集中包含的场景ID(不包括组合场景)，并用逗号分隔，执行时将会优先按照顺序执行这些场景。', {title:'说明', shadeClose:'true', icon: 0});"><i class="Hui-iconfont" style="color:green;">&#xe6cd;</i></a>置顶场景：</label>
                    <div class="formControls col-xs-7 col-sm-9">
                        <input type="text" class="input-text radius" id="topScenes" name="topScenes" value="{{ topScenes }}" placeholder="测试场景id,使用逗号分隔">
                    </div>
            </div>
            <input type="hidden" name="systems" id="systems" values="{{systems}}"/>
            <div class="row cl">
                <label class="form-label col-xs-5 col-sm-3"><a style="text-decoration: none;" href="javascript:layer.alert('如果该处配置了至少一个测试环境，则测试时只会对该测试环境下的接口场景进行测试，否则，测试所有可用的环境。', {title:'说明', shadeClose:'true', icon: 0});"><i class="Hui-iconfont" style="color:green;">&#xe6cd;</i></a>可执行测试环境：</label>
                    <div class="formControls col-xs-7 col-sm-9">
                        {{#if businessSystems}}
                            {{#each businessSystems}}
                                <p>{{systemName}}[{{systemHost}}:{{systemPort}}]&nbsp;{{protocolType}}</p>
                            {{/each}}
                        {{/if}}
                        <input type="button" class="btn btn-success radius  size-S" value="选择" id="choose-business-system">
                        <input type="button" class="btn btn-danger radius  size-S" value="清除" id="clear-business-system">
                    </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-5 col-sm-3">邮件通知收件地址：</label>
                    <div class="formControls col-xs-7 col-sm-9">
                        <input type="text" class="input-text radius" id="mailReceiveAddress" name="mailReceiveAddress" value="{{ mailReceiveAddress }}" placeholder="多条请以逗号分隔">
                    </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-5 col-sm-3">邮件通知抄送地址：</label>
                    <div class="formControls col-xs-7 col-sm-9">
                        <input type="text" class="input-text radius" id="mailCopyAddress" name="mailCopyAddress" value="{{ mailCopyAddress }}" placeholder="多条请以逗号分隔">
                    </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-5 col-sm-3"><a style="text-decoration: none;" href="javascript:layer.alert('<span style=\'color:red;\'>只对该测试集有效并且只在测试集测试过程中生效：</span>存在同名的测试变量、Header优先使用该处配置。验证规则将会附加到测试集中的每个测试场景中。', {title:'说明', shadeClose:'true', icon: 0});"><i class="Hui-iconfont" style="color:green;">&#xe6cd;</i></a>测试集公共信息：</label>
                <div class="formControls col-xs-7 col-sm-9">
                    <button class="btn btn-success radius size-MINI" type="button" id="set-public-data">公共变量</button>
                    <input type="hidden" id="publicData", name="publicData" value="{{ publicData }}">
                    <button class="btn btn-success radius size-MINI" type="button" id="set-public-http-header">HTTP头信息</button>
                    <input type="hidden" id="publicHeader", name="publicHeader" value="{{ publicHeader }}">
                    <button class="btn btn-primary radius size-MINI" type="button" id="set-public-validate-rule">验证规则</button>
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-5 col-sm-3"><a style="text-decoration: none;" href="javascript:layer.alert('测试场景中使用的变量优先会从数据池中获取。', {title:'说明', shadeClose:'true', icon: 0});"><i class="Hui-iconfont" style="color:green;">&#xe6cd;</i></a>使用数据池：</label>
                <div class="formControls col-xs-7 col-sm-9">
                    {{#if dataPool}}
                        <span>{{dataPool.name}}&nbsp;&nbsp;</span>
                    {{/if}}
                    <input type="button" class="btn btn-success radius  size-S" value="选择" id="choose-data-pool">
                    <input type="button" class="btn btn-danger radius  size-S" value="清除" id="clear-data-pool">
                </div>
                <input type="hidden" name="dataPool.poolId" id="poolId" value="{{dataPool.poolId}}"/>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-5 col-sm-3"><a style="text-decoration: none;" href="javascript:layer.alert('指定使用该数据池中的数据类别，如不选择，则使用该数据池下所有类别的数据。', {title:'说明', shadeClose:'true', icon: 0});"><i class="Hui-iconfont" style="color:green;">&#xe6cd;</i></a>数据池类别：</label>
                <div class="formControls col-xs-7 col-sm-9">
                    {{#if poolDataItems}}
                        {{#each poolDataItems}}
                            <p>{{name}}</p>
                        {{/each}}
                    {{/if}}
                    <input type="button" class="btn btn-success radius  size-S" value="选择" id="choose-pool-item-ids">
                    <input type="button" class="btn btn-danger radius  size-S" value="清除" id="clear-pool-item-ids">
                </div>
                <input type="hidden" name="poolItemIds" id="poolItemIds" value="{{poolItemIds}}"/>
            </div>
            <div class="row cl">
                <div class="col-xs-7 col-sm-9 col-xs-offset-5 col-sm-offset-3">
                    <button class="btn btn-primary radius" type="button" id="update-option"><i class="Hui-iconfont">&#xe632;</i>保存</button>
                    <button class="btn btn-default radius" type="button" onclick="layer.closeAll('page');">&nbsp;&nbsp;关闭&nbsp;&nbsp;</button>
                </div>
            </div>
        </form>
	</div>
</script>

<!-- testData -->
<script id="show-parameter-info" type="text/x-handlebars-template">
<table class="parameter-info-table table table-bg">
		<tr>
			<td>参数ID:</td>
			<td>{{parameterId}}</td>
		</tr>
		<tr>
			<td>参数标识:</td>
			<td>{{parameterIdentify}}</td>
		</tr>
		<tr>
			<td>参数名:</td>
			<td>{{parameterName}}</td>
		</tr>
		<tr>
			<td>节点路径:</td>
			<td>{{path}}</td>
		</tr>
		<tr>
			<td>默认值:</td>
			<td>{{defaultValue}}</td>
		</tr>
		<tr>
			<td></td>
			<td><button class="btn btn-danger btn-sm radius">选择</button>&nbsp;&nbsp;<button class="btn btn-default btn-sm radius">取消</button></td>
		</tr>
</table>
</script>

<script id="setting-parameter-data" type="text/x-handlebars-template">
<div class="page-container setting-parameter">
	<div id="select-parameters">
		{{#each params}}
		<div class="row cl" style="margin-bottom: 8px;">
			<label class="form-label col-xs-7 col-sm-6 ellipsis"><span title="{{path}}">{{path}}</span></label>
			<div class="formControls col-xs-5 col-sm-6">
				{{#if_eq type 'CDATA'}}
					<textarea class="textarea radius setting-parameter-input" name="{{path}}" placeholder='{{defaultValue}}'>{{inputValue settingValue ''}}</textarea>
				{{else}}
					<input type="text" class="input-text setting-parameter-input" name="{{path}}" value="{{settingValue}}" placeholder="{{defaultValue}}">
				{{/if_eq}}
				
			</div>
		</div>
		{{/each}}
	</div>
	<div id="dataMsg">
		<input type="button" class="btn btn-MINI btn-primary radius" value="生成报文" onclick="createDataMessage();">
		<textarea readonly="readonly" rows="" cols="" class="textarea radius">{{dataMsg}}</textarea>
	</div>
</div>
</script>

<!-- autoTask -->
<script id="quartz-expression-edit" type="text/x-handlebars-template">
<article class="page-container">
	<form action="" method="post" class="form form-horizontal">
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
				<strong>定时规则:</strong><span style="color:blue;" id="expressExplain"></span>
			</div>
		</div>
		<input type="hidden" id="taskCronExpression"/>
		<input type="hidden" id="taskId"/>
		{{#each this}}
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3">{{labelText}}:</label>
			<div class="formControls col-xs-8 col-sm-9">
				<span class="select-box radius">					
					<select class="select cron-item" size="1" id="{{name}}" >
						{{#with options}}
						{{#each this}}
							<option value="{{@key}}">{{this}}</option>
						{{/each}}
						{{/with}}
					</select>
				</span>				
			</div>
		</div>
		{{/each}}				
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3">年份:</label>
			<div class="formControls col-xs-8 col-sm-9">	
				<input type="text" class="input-text cron-item" id="year" placeholder="留空为不设置">			
			</div>
		</div>		
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
				<input class="btn btn-primary radius" type="button" value="&nbsp;&nbsp;提交&nbsp;&nbsp;" id="onCl">&nbsp;&nbsp;<input class="btn btn-primary radius" type="button" onclick="layer.closeAll('page');" value="&nbsp;&nbsp;返回&nbsp;&nbsp;">
			</div>
		</div>
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
				<span style="color:red;">你可以选择使用直接填写CRON表达式来设置更为复杂的定时策略.详细请参考<a href="#">Cron表达式说明文档</a></span>
			</div>
		</div>
	</form>
</article>
</script>




<!-- globalVariable -->
<script id="global-variable-setting-value" type="text/x-handlebars-template">
<article class="page-container">
<form action="" method="post" class="form form-horizontal" id="form-variable-value">
	<div class="row cl">
		<div class="formControls col-xs-9 col-sm-10 col-xs-offset-3 col-sm-offset-2">
			<span class="label label-danger radius"> 提示 </span> 如你不清楚以下参数的具体含义和规则，请仔细阅读 <span class="c-red"> 全局变量模板参数说明 </span>。
		</div>
	</div>
	<div class="row cl setRuntimeSetting hide">
		<label class="form-label col-xs-4 col-sm-3">连接超时：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" id="connectTimeOut" class="input-text radius" name="connectTimeOut">
		</div>
	</div>
	<div class="row cl setRuntimeSetting hide">
		<label class="form-label col-xs-4 col-sm-3">读取超时：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text radius" id="readTimeOut" name="readTimeOut">
		</div>
	</div>	
	<div class="row cl setRuntimeSetting hide">
		<label class="form-label col-xs-4 col-sm-3">失败时最大重试次数：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text radius" id="retryCount" name="retryCount">
		</div>
	</div>
	<div class="row cl setRuntimeSetting hide">
		<label class="form-label col-xs-4 col-sm-3">测试模式：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<span class="select-box radius">
			  <select class="select" size="1" id="runType" name="runType">
			    <option value="0">并行测试</option>
			    <option value="1">串行测试</option>
			  </select>
			</span>
		</div>
	</div>			
	<div class="row cl setRuntimeSetting hide">
		<label class="form-label col-xs-4 col-sm-3">测试前检查数据：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<span class="select-box radius">
			  <select class="select" size="1" id="checkDataFlag" name="checkDataFlag">
			    <option value="0">检查</option>
			    <option value="1">不检查</option>
			  </select>
			</span>
		</div>
	</div>		
	
	<div class="row cl relatedKeyWord hide">
		<label class="form-label col-xs-4 col-sm-3">左边界：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" id="LB" placeholder="关联左边界">
		</div>
	</div>
	<div class="row cl relatedKeyWord hide">
		<label class="form-label col-xs-4 col-sm-3">右边界：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" id="RB" placeholder="关联右边界">
		</div>
	</div>
	<div class="row cl relatedKeyWord hide">
		<label class="form-label col-xs-4 col-sm-3">偏移字符数：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" id="OFFSET" placeholder="左起偏移字符数">
		</div>
	</div>
	<div class="row cl relatedKeyWord hide">
		<label class="form-label col-xs-4 col-sm-3">取值顺序(不需要请设置为1)：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="hidden" class="input-text" id="ORDER" value="1"/>
			<a style="text-decoration:none" class="ml-5" onClick="reduceSeq();" href="javascript:;" title="减少"><i class="Hui-iconfont">&#xe6a1;</i></a>&nbsp;&nbsp;<span id="objectSeqText" >1</span>&nbsp;<a style="text-decoration:none" class="ml-5" onClick="addSeq();" href="javascript:;" title="增加"><i class="Hui-iconfont">&#xe600;</i></a>
		</div>
	</div>
	<div class="row cl relatedKeyWord hide">
		<label class="form-label col-xs-4 col-sm-3">取值长度：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" id="LENGHT" placeholder="左起截取的字符长度">
		</div>
	</div>
	<div class="row cl relatedKeyWord hide">
		<label class="form-label col-xs-4 col-sm-3">验证值类型：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<span class="select-box radius">
	  			<select class="select" size="1" id="getValueMethod">
						<option value="0">常量</option>
						<option value="1">入参节点</option>
						<option value="3">全局变量</option>
						<option value="4">正则表达式</option>
	  		 	</select>
          	</span>
		</div>
	</div>
	<div class="row cl relatedKeyWord hide">
		<label class="form-label col-xs-4 col-sm-3">验证值：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<textarea style="height: 80px;" class="textarea radius" id="validateValue"></textarea>
		</div>
	</div>
	<div class="row cl datetime hide">
		<div class="formControls col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">		
			<span class="label label-primary radius">yyyy</span> - 年份&nbsp;&nbsp;<span class="label label-primary radius">MM</span> - 月份&nbsp;&nbsp;<span class="label label-primary radius">dd</span> - 日期<br>
			<span class="label label-primary radius">HH</span> - 小时(24小时制)&nbsp;&nbsp;<span class="label label-primary radius">hh</span> - 小时(12小时制)&nbsp;&nbsp;<span class="label label-primary radius">mm</span> - 分钟<br>
			<span class="label label-primary radius">ss</span> - 秒钟
		</div>
	</div>
	<div class="row cl datetime hide">
		<label class="form-label col-xs-4 col-sm-3">日期格式化：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" id="datetimeFormat" placeholder="yyyy-MM-dd HH:mm:ss">
		</div>
	</div>
    <div class="row cl datetime hide">
        <label class="form-label col-xs-4 col-sm-3">日期偏移天数：</label>
        <div class="formControls col-xs-8 col-sm-9">
            <input type="text" class="input-text" id="dateTimeOffset" placeholder="可填写小数，负数">
        </div>
    </div>
			
	<div class="row cl randomNum hide">
		<label class="form-label col-xs-4 col-sm-3">随机数最小值：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" id="randomMin">
		</div>
	</div>	
	<div class="row cl randomNum hide">
		<label class="form-label col-xs-4 col-sm-3">随机数最大值：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" id="randomNumMax">
		</div>
	</div>		
		
	<div class="row cl randomString hide">
		<label class="form-label col-xs-4 col-sm-3">模式：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<span class="select-box radius">
			  <select class="select" size="1" id="randomStringMode" name="randomStringMode">
			    <option value="0">只包含大写字母</option>
			    <option value="1">只包含小写字母</option>
			    <option value="2">包含大小写字母</option>
			    <option value="3">包含字母和数字</option>
			  </select>
			</span>
		</div>
	</div>
	
	<div class="row cl randomString hide">
		<label class="form-label col-xs-4 col-sm-3">字符串长度：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" id="randomStringNum">
		</div>
	</div>

	<div class="row cl httpCallParameter hide">
		<label class="form-label col-xs-4 col-sm-3">请求头：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<textarea style="height: 80px;" class="textarea radius" id="Headers" name="Headers" placeholder="Content-Type=application/json;charset=utf-8&#10;User-Agent=Chrome"></textarea>
		</div>
	</div>
	<div class="row cl httpCallParameter hide">
		<label class="form-label col-xs-4 col-sm-3">Query参数：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<textarea style="height: 80px;" class="textarea radius" id="Querys" name="Querys" placeholder="id=324&#10;name=baika&#10;age=32"></textarea>
		</div>
	</div>
	<div class="row cl httpCallParameter hide">
		<label class="form-label col-xs-4 col-sm-3">请求认证：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<textarea style="height: 80px;" class="textarea radius" id="Authorization" name="Authorization" placeholder="username=xuwx&#10;password=12345"></textarea>
		</div>
	</div>

	<div class="row cl httpCallParameter webServiceCallParameter hide">
		<label class="form-label col-xs-4 col-sm-3">请求方式：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" id="Method">
		</div>
	</div>
	
	<div class="row cl httpCallParameter socketCallParameter webServiceCallParameter hide">
		<label class="form-label col-xs-4 col-sm-3">连接超时：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" id="ConnectTimeOut">
		</div>
	</div>
	
	<div class="row cl httpCallParameter socketCallParameter hide">
		<label class="form-label col-xs-4 col-sm-3">读取超时：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" id="ReadTimeOut">
		</div>
	</div>

	<div class="row cl httpCallParameter hide">
		<label class="form-label col-xs-4 col-sm-3">返回编码：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" id="RecEncType">
		</div>
	</div>

	<div class="row cl httpCallParameter hide">
		<label class="form-label col-xs-4 col-sm-3">请求编码：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" id="EncType">
		</div>
	</div>

	<div class="row cl webServiceCallParameter hide">
		<label class="form-label col-xs-4 col-sm-3">命名空间：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" id="Namespace">
		</div>
	</div>
	
	<div class="row cl webServiceCallParameter hide">
		<label class="form-label col-xs-4 col-sm-3">用户名：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" id="Username">
		</div>
	</div>

	<div class="row cl webServiceCallParameter hide">
		<label class="form-label col-xs-4 col-sm-3">密码：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" id="Password">
		</div>
	</div>
				
	<div class="row cl uuid hide">
		<label class="form-label col-xs-4 col-sm-3">分隔符：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" id="uuidSeparator">
		</div>
	</div>
	<div class="row cl dynamicInterface hide">
		<div class="formControls col-xs-9 col-sm-10 col-xs-offset-3 col-sm-offset-2">		
			通过某一个接口的测试场景获取出参结果，通过<span class="label label-primary radius"> 出参路径 </span>或者<span class="label label-primary radius"> 关联表达式 </span>来获取指定的值。<br>
			<span class="label label-danger radius"> 出参路径: </span>&nbsp;<span class="label label-default radius"> ROOT.target.code </span><br>
			<span class="label label-danger radius"> 关联表达式: </span>&nbsp;<span class="label label-default radius"> {"LB":"ret_code:\"","RB":",","OFFSET":"","ORDER":"1","LENGHT":""} </span>
		</div>
	</div>
	<div class="row cl dynamicInterface hide">
		<label class="form-label col-xs-4 col-sm-3">测试场景：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="hidden" class="input-text" id="protocolType">
			<input type="hidden" class="input-text" id="sceneId">
			<input type="hidden" class="input-text" id="sceneName">
			<span id="sceneNameText"></span>
 			<input type="button" class="btn btn-MINI btn-primary radius" id="choose-scene" value="选择">
		</div>
	</div>
	<div class="row cl dynamicInterface hide">
		<label class="form-label col-xs-4 col-sm-3">测试环境：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="hidden" class="input-text" id="systemId">
			<input type="hidden" class="input-text" id="systemName">
			<span id="systemNameText"></span>
 			<input type="button" class="btn btn-MINI btn-primary radius" id="choose-system" value="选择">
		</div>
	</div>
    <div class="row cl dynamicInterface hide">
		<label class="form-label col-xs-4 col-sm-3">出参取值：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" id="valueExpression" placeholder="ROOT.target.code">
		</div>
	</div>

    <div class="row cl dbSql hide">
        <label class="form-label col-xs-4 col-sm-3">数据源：</label>
        <div class="formControls col-xs-8 col-sm-9">
            <input type="text" class="input-text" id="dbId" style="width: 180px;">&nbsp;
            <input type="button" class="btn btn-MINI btn-primary radius" id="choose-db" value="选择">
        </div>
    </div>
    <div class="row cl dbSql hide">
        <label class="form-label col-xs-4 col-sm-3">执行SQL：</label>
        <div class="formControls col-xs-8 col-sm-9">
            <textarea id="sql" cols="" rows="" class="textarea radius" placeholder="必填,请不要输入多条SQL或者换行输入"></textarea>
        </div>
    </div>
    <div class="row cl dbSql hide">
        <label class="form-label col-xs-4 col-sm-3">取值行号：</label>
        <div class="formControls col-xs-8 col-sm-9">
            <input type="text" class="input-text" id="rowSeq" placeholder="如果查询出来有多行数据则按照此值获取指定行数据，默认为1">
        </div>
    </div>
    <div class="row cl dbSql hide">
        <label class="form-label col-xs-4 col-sm-3">取值列号：</label>
        <div class="formControls col-xs-8 col-sm-9">
            <input type="text" class="input-text" id="colSeq" placeholder="如果查询出来有多个列名则按照此值获取指定列数据，默认为1">
        </div>
    </div>
	<div class="row cl currentTimestamp hide">
		<label class="form-label col-xs-4 col-sm-3">偏移量（毫秒）：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text" id="timeOffset" placeholder="请用正负整数表示当前时间戳的偏移毫秒数">
		</div>
	</div>
    <!--start 动态组合接口-->
    <div class="row cl dynamicComplexInterface hide">
        <div class="formControls col-xs-9 col-sm-10 col-xs-offset-3 col-sm-offset-2">
            选择一个组合场景，保存组合场景执行后的某一个上下文保存的变量名称到全局变量，供其他地方使用。
            同动态接口一样，在有效期内不会重复调用接口获取。
        </div>
    </div>
    <div class="row cl dynamicComplexInterface hide">
        <label class="form-label col-xs-4 col-sm-3">组合场景：</label>
        <div class="formControls col-xs-8 col-sm-9">
            <input type="hidden" class="input-text" id="complexSceneId">
            <input type="hidden" class="input-text" id="complexSceneName">
            <span id="complexSceneNameText"></span>
            <input type="button" class="btn btn-MINI btn-primary radius" id="choose-complex-scene" value="选择">
        </div>
    </div>
    <div class="row cl dynamicComplexInterface hide">
        <label class="form-label col-xs-4 col-sm-3">取值名称：</label>
        <div class="formControls col-xs-8 col-sm-9">
            <input type="text" class="input-text" id="valueName" placeholder="组合场景内的上下文变量名称">
        </div>
    </div>
    <!--end 动态组合接口-->
	<div class="row cl">
		<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
			<button class="btn btn-primary radius" type="button" id="save-setting-variable-value"><i class="Hui-iconfont">&#xe632;</i>保存</button>
			<button class="btn btn-default radius" type="button" onclick="layer.close(settingLayerIndex);">&nbsp;&nbsp;返回&nbsp;&nbsp;</button>
		</div>
	</div>
</form>	
</article>
</script>


<!-- complexScene -->
<script id="complex-scene-results-view" type="text/x-handlebars-template">
	<div class=page-container>
		{{#each results}}
		<a href="javascript:;" data-id="{{@index}}"  class="result-view">{{messageInfo}}</a>&nbsp;&nbsp;{{businessSystemName}}
		&nbsp;&nbsp;{{{resultLabelView runStatus}}}
		<br>
		{{/each}}
	</div>
</script>

<!-- logRecord -->
<script id="log-record-details-view" type="text/x-handlebars-template">
<div style="margin:12px;">
	<table class="table table-bg" style="table-layout:auto;">
	<tr>
		<td><strong>调用接口地址:</strong></td>
		<td>{{callUrl}}</td>
	</tr>
	<tr>
		<td><strong>调用接口名称:</strong></td>
		<td>{{#if opInterface}} {{ opInterface.opName }} {{/if}}</td>
	</tr>
	<tr>
		<td><strong>操作时间:</strong></td>
		<td>{{opTime}}</td>
	</tr>
	<tr>
		<td><strong>用户名:</strong></td>
		<td>{{#if user}} {{user.realName}} {{/if}}</td>
	</tr>
	<tr>
		<td><strong>调用类型:</strong></td>
		<td>
		{{#if_eq callType '0'}}
			<span class="label label-primary radius">用户调用</span>
		{{/if_eq}}
		{{#if_eq callType '1'}}
			<span class="label label-success radius">外部API</span>
		{{/if_eq}}	
		{{#if_eq callType '2'}}
			<span class="label label-warning radius">内部自调</span>
		{{/if_eq}}	
		{{#if_eq callType '3'}}
			<span class="label label-success radius">接口MOCK</span>
		{{/if_eq}}				
		</td>
	</tr>
	<tr>
		<td><strong>状态:</strong></td>
		<td>
		{{#if_eq interceptStatus '0'}}
			<span class="label label-success radius">正常</span>
		{{/if_eq}}	
		{{#if_eq interceptStatus '1'}}
			<span class="label label-warning radius">无权限</span>
		{{/if_eq}}
		{{#if_eq interceptStatus '2'}}
			<span class="label label-warning radius">未登录</span>
		{{/if_eq}}
		{{#if_eq interceptStatus '3'}}
			<span class="label label-primary radius">放行</span>
		{{/if_eq}}
		{{#if_eq interceptStatus '4'}}
			<span class="label label-danger radius">token不正确</span>
		{{/if_eq}}
		{{#if_eq interceptStatus '5'}}
			<span class="label label-warning radius">禁用接口</span>
		{{/if_eq}}
		{{#if_eq interceptStatus '6'}}
			<span class="label label-danger radius">系统错误</span>
		{{/if_eq}}
		{{#if_eq interceptStatus '7'}}
			<span class="label label-danger radius">MOCK出错</span>
		{{/if_eq}}
		{{#if_eq interceptStatus '8'}}
			<span class="label label-warning radius">接口不存在</span>
		{{/if_eq}}
		</td>
	</tr>
	<tr>
		<td><strong>用户IP:</strong></td>
		<td>{{userHost}}</td>
	</tr>
	<tr>
		<td><strong>浏览器信息:</strong></td>
		<td>{{browserAgent}}</td>
	</tr>
	<tr>
		<td><strong>验证耗时:</strong></td>
		<td>{{validateTime}} ms</td>
	</tr>
	<tr>
		<td><strong>执行耗时:</strong></td>
		<td>{{executeTime}} ms</td>
	</tr>	
	<tr>
		<td><strong>入参:</strong></td>
		<td></td>
	</tr>
	<tr>
		<td colspan="2"><textarea style="height: 140px;" class="textarea radius">{{requestParams}}</textarea></td>
	</tr>
	<tr>
		<td><strong>出参:</strong></td>
		<td></td>
	</tr>
	<tr>
		<td colspan="2"><textarea style="height: 140px;" class="textarea radius">{{responseParams}}</textarea></td>
	</tr>	
	<tr>
		<td><strong>备注:</strong></td>
		<td></td>
	</tr>
	<tr>
		<td colspan="2"><textarea style="height: 80px;" class="textarea radius">{{mark}}</textarea></td>
	</tr>	
</table>
</div>
</script>

<!-- 接口mock  mockTest.html-->
<script id="mock-request-validate-setting" type="text/x-handlebars-template">
<article class="page-container">
<form action="" method="post" class="form form-horizontal">
	<div class="row cl">
		<div class="formControls col-xs-9 col-sm-10 col-xs-offset-3 col-sm-offset-2">
			<span class="label label-danger radius"> 提示 </span> 如你不清楚以下参数的具体含义和规则，请仔细阅读 <span class="c-red"> 接口MOCK入参验证规则 </span>。
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">请求方式验证：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<span class="select-box radius"> 
				<select class="select" size="1" id="method" name="method" value="{{ method }}">
						<option value="">不限</option>
						<option value="POST">POST</option>
						<option value="GET">GET</option>
				</select>
			</span>
		</div>
	</div>
	<input type="hidden" id="mockId">
	<input type="hidden" id="layerIndex">	
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">请求报文格式验证：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<span class="select-box radius"> 
				<select class="select" size="1" id="messageType" name="messageType" value="{{ messageType }}">
						<option value="">不限</option>
						<option value="JSON">JSON</option>
						<option value="XML">XML</option>
						<option value="URL">URL</option>
				</select>
			</span>
		</div>
	</div>	
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">请求头验证：</label>
		<div class="formControls col-xs-8 col-sm-9" group-name="headers" mock-type="validate">
			<button class="btn btn-primary radius size-MINI validate-setting-btn-add" type="button">添加</button>&nbsp;<button class="btn radius size-MINI validate-setting-btn-clear" type="button">清除</button>
			{{#each headers}}
				<span array-id="{{@index}}" class="label label-default radius edit-validate-parameter appoint">{{ name }} </span><i class="Hui-iconfont del-validate-parameter appoint" style="margin-right:8px;">&#xe6a6;</i>		
			{{/each}}			
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">查询参数验证：</label>
		<div class="formControls col-xs-8 col-sm-9" group-name="querys" mock-type="validate">
			<button class="btn btn-primary radius size-MINI validate-setting-btn-add" type="button">添加</button>&nbsp;<button class="btn radius size-MINI validate-setting-btn-clear" type="button">清除</button>
			{{#each querys}}
				<span array-id="{{@index}}" class="label label-default radius edit-validate-parameter appoint">{{ name }} </span><i class="Hui-iconfont del-validate-parameter appoint" style="margin-right:8px;">&#xe6a6;</i>		
			{{/each}}
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">入参验证：</label>
		<div class="formControls col-xs-8 col-sm-9" group-name="parameters" mock-type="validate">
			<button class="btn btn-primary radius size-MINI validate-setting-btn-add" type="button">添加</button>&nbsp;<button class="btn radius size-MINI validate-setting-btn-clear" type="button">清除</button>&nbsp;<button class="btn radius size-MINI validate-setting-btn-import" type="button">导入</button>
			{{#each parameters}}
				<span array-id="{{@index}}" class="label label-default radius edit-validate-parameter appoint">{{{validate_path path}}}{{ name }} </span><i class="Hui-iconfont del-validate-parameter appoint" style="margin-right:8px;">&#xe6a6;</i>		
			{{/each}}
		</div>
	</div>
	<div class="row cl">
		<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
			<button setting-type="requestValidate" class="btn btn-success radius" type="button" id="save-setting-mock-validate"><i class="Hui-iconfont">&#xe632;</i> 保存设置</button>
			<button class="btn btn-default radius" type="button" onclick="layer.close($(this).parents('form').find('#layerIndex').val());">&nbsp;&nbsp;返回&nbsp;&nbsp;</button>
		</div>
	</div>
</form>	
</article>
</script>

<script id="mock-request-validate-rule-config" type="text/x-handlebars-template">
<article class="page-container">
<form action="" method="post" class="form form-horizontal">
	<div class="row cl">
		<div class="formControls col-xs-9 col-sm-10 col-xs-offset-3 col-sm-offset-2">
			<span class="label label-danger radius"> 提示 </span> 如你不清楚以下参数的具体含义和规则，请仔细阅读 <span class="c-red"> 接口MOCK入参验证规则 </span>。
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">节点名：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text radius" name="name" id="name" value='{{{inputValue name ""}}}' placeholder="必填">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">节点路径：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text radius" name="path" id="path" value='{{{inputValue path ""}}}' placeholder="可留空" style="width:360px;">
			<a class="btn btn-primary radius" id="mock-validate-relation-setting" href="javascript:;">关联取值</a>
			<a mark-name="mock-validate-path" class="btn btn-default radius explanation-mark"><i class="Hui-iconfont">&#xe6cd;</i></a>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">节点类型：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<span class="select-box radius"> 
				<select class="select" size="1" id="type" name="type" value="{{{inputValue type ''}}}">
						<option value="String">String</option>
						<option value="Number">Number</option>
						<option value="Map">Map</option>
						<option value="Array">Array</option>
				</select>
			</span>
		</div>
	</div>
	<input type="hidden" id="layerIndex">	
	<input type="hidden" id="group-name">
	<input type="hidden" id="array-id">
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">验证类型：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<span class="select-box radius"> 
				<select class="select" size="1" id="validateType" name="validateType" value="{{{inputValue validateType ''}}}">
						<option value="none">不需要验证</option>
						<option value="exist">必须存在值</option>
						<option value="equal">等于验证值</option>
						<option value="contain">包含验证值</option>
						<option value="regexp">正则匹配验证值</option>
				</select>
			</span>
		</div>
	</div>	
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">验证值：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input placeholder="可留空,可填写常量或者全局变量" type="text" class="input-text radius" name="validateValue" id="validateValue" value='{{{inputValue validateValue ""}}}' placeholder='可填写常量或者全局变量'>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">验证时忽略大小写：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<span class="select-box radius"> 
				<select class="select" size="1" id="ignoreCase" name="ignoreCase" value="{{{inputValue ignoreCase ''}}}">
						<option value="true">是</option>
						<option value="false">否</option>
				</select>
			</span>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">最小长度：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" placeholder="可留空" class="input-text radius" name="minLength" id="minLength" value='{{{inputValue minLength ""}}}'>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">最大长度：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" placeholder="可留空" class="input-text radius" name="maxLength" id="maxLength" value='{{{inputValue maxLength ""}}}'>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">最小值(数字类型)：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" placeholder="可留空" class="input-text radius" name="min" id="min" value='{{{inputValue min ""}}}'>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">最大值(数字类型)：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" placeholder="可留空" class="input-text radius" name="max" id="max" value='{{{inputValue max ""}}}'>
		</div>
	</div>
	<div class="row cl">
		<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
			<button setting-type="requestValidate" class="btn btn-success radius" type="button" id="save-setting-validate-rule"><i class="Hui-iconfont">&#xe632;</i> 保存设置</button>
			<button class="btn btn-default radius" type="button" onclick="layer.close($(this).parents('form').find('#layerIndex').val());">&nbsp;&nbsp;返回&nbsp;&nbsp;</button>
		</div>
	</div>
</form>	
</article>
</script>

<script id="mock-validate-relation-keyword" type="text/x-handlebars-template">
<div class="page-container">
	<div class="row cl" style="margin-top: 14px;margin-bottom: 8px;">
		<label class="form-label col-xs-5 col-sm-4">左边界：</label>
		<div class="formControls col-xs-7 col-sm-8">
			<input type="text" class="input-text" id="LB" placeholder="关联左边界,可留空" value='{{{inputValue LB ""}}}'>
		</div>
	</div>
	<div class="row cl" style="margin-bottom: 8px;">
		<label class="form-label col-xs-5 col-sm-4">右边界：</label>
		<div class="formControls col-xs-7 col-sm-8">
			<input type="text" class="input-text" id="RB" placeholder="关联右边界,可留空" value='{{{inputValue RB ""}}}'>
		</div>
	</div>
	<div class="row cl" style="margin-bottom: 8px;">
		<label class="form-label col-xs-5 col-sm-4">偏移字符数：</label>
		<div class="formControls col-xs-7 col-sm-8">
			<input type="text" class="input-text" id="OFFSET" placeholder="左起偏移字符数" value='{{{inputValue OFFSET ""}}}'>
		</div>
	</div>
	<div class="row cl" style="margin-bottom: 8px;">
		<label class="form-label col-xs-5 col-sm-4">取值顺序(不需要请设置为1)：</label>
		<div class="formControls col-xs-7 col-sm-8">
			<input type="hidden" class="input-text" id="ORDER" value='{{{inputValue ORDER "1"}}}'/>
			<a style="text-decoration:none" class="ml-5" onClick="reduceSeq();" href="javascript:;" title="减少"><i class="Hui-iconfont">&#xe6a1;</i></a>&nbsp;&nbsp;<span id="objectSeqText" >{{{inputValue ORDER "1"}}}</span>&nbsp;<a style="text-decoration:none" class="ml-5" onClick="addSeq();" href="javascript:;" title="增加"><i class="Hui-iconfont">&#xe600;</i></a>
		</div>
	</div>
	<div class="row cl" style="margin-bottom: 8px;">
		<label class="form-label col-xs-5 col-sm-4">取值长度：</label>
		<div class="formControls col-xs-7 col-sm-8">
			<input type="text" class="input-text" id="LENGHT"  value='{{{inputValue LENGHT ""}}}' placeholder="左起截取的字符长度">
		</div>
	</div>
</div>
</script>

<script id="mock-response-setting" type="text/x-handlebars-template">
<article class="page-container">
<form action="" method="post" class="form form-horizontal">
	<div class="row cl">
		<div class="formControls col-xs-9 col-sm-10 col-xs-offset-3 col-sm-offset-2">
			<span class="label label-danger radius"> 提示 </span> 如你不清楚以下参数的具体含义和规则，请仔细阅读 <span class="c-red"> 接口MOCK出参模拟生成规则 </span>。
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">报文格式：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<span class="select-box radius"> 
				<select class="select" size="1" id="messageType" name="messageType" value="{{ messageType }}">
						<option value="TEXT">通用</option>
						<option value="JSON">JSON</option>
						<option value="XML">XML</option>
						<option value="URL">URL</option>
				</select>
			</span>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">响应头模拟：</label>
		<div class="formControls col-xs-8 col-sm-9" group-name="headers" mock-type="mock">
			<button class="btn btn-primary radius size-MINI validate-setting-btn-add" type="button">添加</button>&nbsp;<button class="btn radius size-MINI validate-setting-btn-clear" type="button">清除</button>
			{{#each headers}}
				<span array-id="{{@index}}" class="label label-default radius edit-validate-parameter appoint">{{ name }} </span><i class="Hui-iconfont del-validate-parameter appoint" style="margin-right:8px;">&#xe6a6;</i>		
			{{/each}}			
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">出参模拟：</label>
		<div class="formControls col-xs-8 col-sm-9" group-name="parameters" mock-type="mock">
			<button class="btn btn-primary radius size-MINI validate-setting-btn-add" type="button">添加</button>&nbsp;<button class="btn radius size-MINI validate-setting-btn-clear" type="button">清除</button>
			{{#each parameters}}
				<span array-id="{{@index}}" class="label label-default radius edit-validate-parameter appoint">{{#if path}}{{ path }}.{{/if}}{{ name }} </span><i class="Hui-iconfont del-validate-parameter appoint" style="margin-right:8px;">&#xe6a6;</i>		
			{{/each}}
		</div>
	</div>
	<input type="hidden" id="mockId">
	<input type="hidden" id="layerIndex">	
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">编码格式：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" placeholder="出参编码格式" class="input-text radius" name="charset" id="charset" value='{{{inputValue charset "UTF-8"}}}'>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">睡眠时间(ms)：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" placeholder="可留空" class="input-text radius" name="sleepTime" id="sleepTime" value='{{{inputValue sleepTime ""}}}'>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">返回报文模板：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<textarea name="exampleResponseMsg" id="exampleResponseMsg" cols="" rows="" class="textarea radius" placeholder="必填">{{{inputValue exampleResponseMsg ""}}}</textarea>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">失败返回模板：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<textarea placeholder="使用${errorMsg}表示错误信息,可使用全局变量" name="exampleErrorMsg" id="exampleErrorMsg" cols="" rows="" class="textarea radius" placeholder="必填">{{{inputValue exampleErrorMsg ""}}}</textarea>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">是否格式化发送：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<span class="select-box radius"> 
				<select class="select" size="1" id="format" name="format" value="{{{inputValue format 'false'}}}">
						<option value="false">否</option>
						<option value="true">是</option>
				</select>
			</span>
		</div>
	</div>
	<div class="row cl">
		<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
			<button setting-type="responseMock" class="btn btn-success radius" type="button" id="save-setting-mock-validate"><i class="Hui-iconfont">&#xe632;</i> 保存设置</button>
			<button class="btn btn-default radius" type="button" onclick="layer.close($(this).parents('form').find('#layerIndex').val());">&nbsp;&nbsp;返回&nbsp;&nbsp;</button>
		</div>
	</div>
</form>	
</article>
</script>

<script id="mock-response-rule-config" type="text/x-handlebars-template">
<article class="page-container">
<form action="" method="post" class="form form-horizontal">
	<div class="row cl">
		<div class="formControls col-xs-9 col-sm-10 col-xs-offset-3 col-sm-offset-2">
			<span class="label label-danger radius"> 提示 </span> 如你不清楚以下参数的具体含义和规则，请仔细阅读 <span class="c-red"> 接口MOCK出参模拟生成规则 </span>。
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">节点名：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text radius" style="width:320px;" name="name" id="name" value='{{{inputValue name ""}}}' placeholder="必填">
			<button type="button" class="btn btn-primary radius" id="choose-response-message-parameter">选择<button>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">节点路径：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text radius" name="path" id="path" value='{{{inputValue path ""}}}' placeholder="可留空">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">生成规则类型：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<span class="select-box radius"> 
				<select class="select" size="1" id="generateType" name="generateType" value="{{{inputValue generateType 'constant'}}}">
						<option value="constant">常量</option>
						<option value="variable">全局变量</option>
						<option value="node">入参节点</option>
						<option value="regular">正则表达式</option>
				</select>
			</span>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">生成参数：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text radius" name="generateValue" id="generateValue" value='{{{inputValue generateValue ""}}}' placeholder="必填">
		</div>
	</div>
	<input type="hidden" id="layerIndex">	
	<input type="hidden" id="group-name">
	<input type="hidden" id="array-id">	
	<div class="row cl">
		<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
			<button setting-type="responseMock" class="btn btn-success radius" type="button" id="save-setting-validate-rule"><i class="Hui-iconfont">&#xe632;</i> 保存设置</button>
			<button class="btn btn-default radius" type="button" onclick="layer.close($(this).parents('form').find('#layerIndex').val());">&nbsp;&nbsp;返回&nbsp;&nbsp;</button>
		</div>
	</div>
</form>	
</article>
</script>

<!--性能测试配置    performanceTestConfig.html -->
<script id="performance-test-config-setting" type="text/x-handlebars-template">
<article class="page-container" style="padding:5px;overflow:hidden;">
<form action="" method="post" class="form form-horizontal">
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">参数化文件：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input class="input-text radius upload-url" type="text" name="parameterizedFilePath" id="parameterizedFilePath" readonly value="{{parameterizedFilePath}}">
			<input type="button" class="btn btn-primary radius" value="下载查看" id="download-parameterized-file">&nbsp;<input type="button" class="btn btn-danger radius" value="清除" id="remove-parameterized-file">
			<a mark-name="parameterizedFilePath" href="javascript:;" class="btn btn-default radius explanation-mark"><i class="Hui-iconfont">&#xe6cd;</i></a>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">参数复用：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<span class="select-box radius"> 
				<select class="select" size="1" id="parameterReuse" name="parameterReuse" value="{{{inputValue parameterReuse '1'}}}">
						<option value="1">可复用</option>
						<option value="0">不可复用</option>
				</select>
			</span>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">取值规则：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<span class="select-box radius"> 
				<select class="select" size="1" id="parameterPickType" name="parameterPickType" value="{{{inputValue type '0'}}}">
						<option value="0">按顺序取值</option>
						<option value="1">随机取值</option>
				</select>
			</span>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">格式化分隔符：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" placeholder="可不填,默认为英文下逗号" class="input-text radius" name="formatCharacter" id="formatCharacter" value='{{formatCharacter}}'>
		</div>
	</div>
	<input type="hidden" id="layerIndex">	
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">保持HTTP长连接：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<span class="select-box radius"> 
				<select class="select" size="1" id="keepAlive" name="keepAlive" value="{{{inputValue keepAlive '1'}}}">
						<option value="1">是</option>
						<option value="0">否</option>
				</select>
			</span>
		</div>
	</div>	
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">最大迭代次数：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" placeholder="多线程将会均分迭代次数" class="input-text radius" name="maxCount" id="maxCount" value='{{{inputValue maxCount ""}}}'>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">最长执行时间(秒)：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" placeholder="此项优先级大于最大迭代数" class="input-text radius" name="maxTime" id="maxTime" value='{{{inputValue maxTime ""}}}'>
		</div>
	</div>
	<div class="row cl">
		<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
			<button class="btn btn-success radius" type="button" id="save-performance-test-setting"><i class="Hui-iconfont">&#xe632;</i> 保存配置</button>
			<button class="btn btn-default radius" type="button" onclick="layer.close($(this).parents('form').find('#layerIndex').val());">&nbsp;&nbsp;返回&nbsp;&nbsp;</button>
		</div>
	</div>	
</form>	
</article>
</script>

<!--性能测试任务    performanceTestTaskList.html -->
<script id="performance-test-task-view" type="text/x-handlebars-template">
<div class="page-container">
<div class="pt-task-header row">
		<input type="hidden" id="ptResultId" />
		<div class="col-sm-2">
			<strong>名称</strong>: {{ptName}}<br>
			<strong>接口场景</strong>: {{interfaceName}}<br>
			<strong>测试环境</strong>: {{systemName}}<br>			
		</div>
		<div class="col-sm-2">
			<div class="pt-task-btn-group"><button id="start-pt-test" class="btn btn-primary radius size-S">执行测试</button></div>
			<div class="pt-task-btn-group"><button id="stop-pt-test" class="btn btn-warning radius size-S">停止测试</button><button id="del-pt-test" class="btn btn-danger radius size-S">删除测试</button></div>
			<div class="pt-task-btn-group hide"><button id="anaylze-view-setting" class="btn btn-primary radius size-S">视图配置</button></div>
		</div>
		<div class="col-sm-2">
			<strong>当前状态:</strong> <span class="label label-success radius">{{currentStatus}}</span><br>
			<strong>开始时间:</strong> <span class="label label-primary radius">{{startTime}}</span><br>
			<div class="btn-group" style="margin-top:3px;">
			  <span type="infoMsg" class="btn btn-primary radius size-MINI show-pt-test-msg">InfoLog <span class="badge badge-default radius">{{infoMsg.length}}</span></span>
			  <span type="errorMsg" class="btn btn-danger radius size-MINI show-pt-test-msg">ErrorLog <span class="badge badge-default radius">{{errorMsg.length}}</span></span>			  
			</div>
			<div class="btn-group" style="margin-top:4px;">
				<span type="resultMark" class="btn btn-success radius size-MINI show-pt-test-msg">ResultLog <span class="badge badge-default radius">{{resultMark.length}}</span></span>
			</div>
		</div>
		<div class="col-sm-6">
			<table class="table table-border table-bordered">
			  <thead class="text-c">
			    <tr>
			      <th colspan="3">transaction</th>
			      <th colspan="3">Tps</th>
				  <th colspan="3">ResponseTime</th>
			    </tr>
				<tr>
				  <th>total</th>
			      <th>success</th>
				  <th>fail</th>
				  <th>avg</th>
			      <th>max</th>
				  <th>min</th>
				  <th>avg</th>
			      <th>max</th>
				  <th>min</th>
				</tr>
			  </thead>
			  <tbody>
			    <tr class="text-c">
				  <td type="totalCount">{{totalCount}}</td>
			      <td type="successCount">{{successCount}}</td>
			      <td type="failCount">{{failCount}}</td>
			      <td type="tpsAvg">{{tpsAvg}}</td>
			      <td type="tpsMax">{{tpsMax}}</td>
			      <td type="tpsMin">{{tpsMin}}</td>
			      <td type="responseTimeAvg">{{responseTimeAvg}}</td>
			      <td type="responseTimeMax">{{responseTimeMax}}</td>
			      <td type="responseTimeMin">{{responseTimeMin}}</td>
			    </tr>
			  </tbody>
			</table>
		</div>
</div>
<div class="pt-task-echart-views">
	<div class="row">
		<div class="col-sm-6">
			<div class="pt-task-echart-view" type="tps" style="width: 550px;height:240px;">							
			</div>
		</div>
		<div class="col-sm-6">
			<div class="pt-task-echart-view" type="responseTime" style="width: 550px;height:240px;">							
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-sm-6">
			<div class="pt-task-echart-view" type="pressCpu" style="width: 550px;height:240px;">							
			</div>
		</div>
		<div class="col-sm-6">
			<div class="pt-task-echart-view" type="pressMemory" style="width: 550px;height:240px;">							
			</div>
		</div>
	</div>
</div>
</div>
</script>

<script id="performance-test-view-setting" type="text/x-handlebars-template">
<article class="page-container">
<form action="" method="post" class="form form-horizontal">
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">时间范围：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text radius" name="rangeTime" id="rangeTime">
		</div>
	</div>
	<input type="hidden" id="layerIndex" />
	<div class="row cl">
		<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
			<button class="btn btn-success radius" type="button" id="update-pt-result-view"><i class="Hui-iconfont">&#xe632;</i> 更新视图</button>
			<button class="btn btn-default radius" type="button" onclick="layer.close($(this).parents('form').find('#layerIndex').val());">&nbsp;&nbsp;返回&nbsp;&nbsp;</button>
		</div>
	</div>		
</form>	
</article>
</script>

<!-- globalSetting.html 全局配置 -->
<script id="global-setting-mail-style" type="text/x-handlebars-template">
<article class="page-container">
<form action="" method="post" class="form form-horizontal">
	<div class="row cl">
		<div class="formControls col-xs-12 col-sm-12">
			{{#each marks}}
				<span class="label label-success radius">&nbsp;{{@key}}&nbsp;</span> - {{this}}&nbsp;&nbsp;
			{{/each}}
		</div>
	</div>
	<div class="row cl">
		<div class="formControls col-xs-12 col-sm-12">
			<textarea name="settingStyleValue" id="settingStyleValue" style="height:280px;" cols="" rows="" class="textarea radius">{{{inputValue value ''}}}</textarea>
		</div>
	</div>
	<input type="hidden" id="layerIndex" />	
</form>	
</article>
</script>

<!-- webCase.html 用例管理页面 -->
<script id="web-test-config-view" type="text/x-handlebars-template">
<article class="page-container">
<form action="" method="post" class="form form-horizontal">
	<div class="row cl">
		<div class="formControls col-xs-12 col-sm-12">
			<strong>自定义变量:&nbsp;&nbsp;</strong>
			<button class="btn btn-primary radius" type="button" id="web-test-config-add-variable"><i class="Hui-iconfont">&#xe600;</i> 增加</button>&nbsp;&nbsp;
			<button class="btn btn-danger radius" type="button" id="web-test-config-clear-all-varibale"><i class="Hui-iconfont">&#xe6e2;</i> 清除所有</button>
			<br>
			<div id="web-test-config-variables">
				{{#if caseVariables}}
				{{#each caseVariables}}
				<div class="row cl">
					<div class="form-label col-xs-5 col-sm-5">
						<input type="text" class="input-text radius" value='{{@key}}'>
					</div> 				
					<div class="formControls col-xs-5 col-sm-5">
						<input type="text" class="input-text radius" value='{{this}}'>
					</div>
					<div class="formControls col-xs-2 col-sm-2">
						<a class="btn btn-default radius"><i class="Hui-iconfont">&#xe60b;</i></a>
					</div>
				</div>
				{{/each}}
				{{/if}}
				{{#if suiteVariables}}
				{{#each caseVariables}}
				<div class="row cl">
					<div class="form-label col-xs-5 col-sm-5">
						<input type="text" class="input-text radius" value='{{@key}}'>
					</div> 				
					<div class="formControls col-xs-5 col-sm-5">
						<input type="text" class="input-text radius" value='{{this}}'>
					</div>
					<div class="formControls col-xs-2 col-sm-2">
						<a class="btn btn-default radius"><i class="Hui-iconfont">&#xe60b;</i></a>
					</div>
				</div>
				{{/each}}
				{{/if}}
			</div>			
		</div>					
	</div>
	<input type="hidden" id="layerIndex"/>
	<input type="hidden" id="objectId"/>
	<div class="row cl" style="margin-top:18px;">
		<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
			<button class="btn btn-success radius" type="button" id="update-web-test-config"><i class="Hui-iconfont">&#xe632;</i> 更新配置</button>
			<button class="btn btn-default radius" type="button" onclick="layer.close($(this).parents('form').find('#layerIndex').val());">&nbsp;&nbsp;关闭&nbsp;&nbsp;</button>
			<a mark-name="webCustomVariableSetting" class="btn btn-default radius explanation-mark"><i class="Hui-iconfont">&#xe6cd;</i></a>
		</div>
	</div>
</form>	
</article>
</script>

<!-- webStep.html web自动化相关界面 -->

<!-- 操作类型 和 数据类型的选择 -->
<script id="web-step-data-type" type="text/x-handlebars-template">
<article class="page-container">
<form action="" method="post" class="form form-horizontal">
<div class="row cl">
	<div class="formControls col-xs-12 col-sm-12">
		{{#each this}}
			<input type="button" class="btn radius choose-this-data-type" data-type="{{@key}}" value="{{text}}" />
		{{/each}}
	</div>
</div>
<hr>
<div class="row cl">
	<div class="formControls col-xs-12 col-sm-12">
		{{#each this}}
			<div id="{{@key}}" class="hide">
				<p><strong>说明：</strong>{{{mark}}}</p>
				{{#if dataType}}
				<p><strong>示例：</strong>{{{example}}}</p>
				{{/if}}
				{{#if opType}}
				<p><strong>必要值：</strong>{{{requiredData}}}</p>
				<p><strong>验证值：</strong>{{{validateData}}}</p>
				{{/if}}
			</div>
		{{/each}}
	</div>
</div>
<input type="hidden" id="layerIndex" />	
<input type="hidden" id="parent-type">
</form>
</article>
</script>
<!-- 测试步骤配置 -->
<script id="web-step-config" type="text/x-handlebars-template">
<article class="page-container">
<form action="" method="post" class="form form-horizontal">
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">窗口名称：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text radius" name="windowName" id="windowName" value="{{{inputValue windowName ''}}}">			
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">保存值名称：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text radius" name="saveVariableName" id="saveVariableName" value="{{{inputValue saveVariableName ''}}}">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">是否截图：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<span class="select-box radius"> 
				<select class="select" size="1" id="screenshot" name="screenshot" value="{{{inputValue screenshot 'false'}}}">
						<option value="false">否</option>
						<option value="true">是</option>						
				</select>
			</span>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">执行步骤前等待时长(秒)：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text radius" name="beforeExecWaitTime" id="beforeExecWaitTime" value="{{{inputValue beforeExecWaitTime '0'}}}">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">执行步骤后等待时长(秒)：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text radius" name="afterExecWaitTime" id="afterExecWaitTime" value="{{{inputValue afterExecWaitTime '0'}}}">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">清除浏览器缓存：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<span class="select-box radius"> 
				<select class="select" size="1" id="clearCache" name="clearCache" value="{{{inputValue clearCache 'false'}}}">
						<option value="false">否</option>
						<option value="true">是</option>						
				</select>
			</span>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">清除文本框内容：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<span class="select-box radius"> 
				<select class="select" size="1" id="clearCache" name="clearCache" value="{{{inputValue clearText 'true'}}}">
						<option value="true">是</option>
						<option value="false">否</option>												
				</select>
			</span>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">用例片段循环执行次数：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text radius" name="snippetLoopCount" id="snippetLoopCount" value="{{{inputValue snippetLoopCount '1'}}}">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">用例片段循环执行退出条件：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<span class="select-box radius"> 
				<select class="select" size="1" id="snippetLoopExitCondition" name="snippetLoopExitCondition" value="{{{inputValue snippetLoopExitCondition 'fail'}}}">
						<option value="fail">执行失败时</option>
						<option value="success">执行成功时</option>		
						<option value="whether">执行完指定次数时</option>				
				</select>
			</span>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">该步骤是否为控制条件：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<span class="select-box radius"> 
				<select class="select" size="1" id="controlCondition" name="controlCondition" value="{{{inputValue controlCondition 'false'}}}">
						<option value="false">否</option>
						<option value="true">是</option>																		
				</select>
			</span>
		</div>
	</div>
	<input type="hidden" id="layerIndex" />
	<input type="hidden" id="stepId" />
	<div class="row cl">
		<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
			<button class="btn btn-success radius" type="button" id="update-web-step-config"><i class="Hui-iconfont">&#xe632;</i> 更新配置</button>
			<button class="btn btn-default radius" type="button" onclick="layer.close($(this).parents('form').find('#layerIndex').val());">&nbsp;&nbsp;返回&nbsp;&nbsp;</button>
			<a mark-name="webStepConfig" class="btn btn-default radius explanation-mark"><i class="Hui-iconfont">&#xe6cd;</i></a>
		</div>
	</div>		
</form>	
</article>
</script>


<!-- webSuite.html web自动化测试集 -->
<!-- 运行时设置 -->
<script id="web-test-config-setting" type="text/x-handlebars-template">
<article class="page-container">
<form action="" method="post" class="form form-horizontal">
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">运行时最大化窗口：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<span class="select-box radius"> 
				<select class="select" size="1" id="windowMaximize" name="windowMaximize" value="{{{inputValue windowMaximize '1'}}}">
						<option value="1">是</option>
						<option value="0">否</option>						
				</select>
			</span>		
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">页面等待加载超时时间(秒)：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text radius" name="pageLoadTimeout" id="pageLoadTimeout" value="{{{inputValue pageLoadTimeout '30'}}}">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">隐式等待元素超时时间(秒)：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text radius" name="implicitlyWaitTimeout" id="implicitlyWaitTimeout" value="{{{inputValue implicitlyWaitTimeout '30'}}}">
		</div>
	</div>
	
	<div class="row cl">
		<div class="form-label col-xs-4 col-sm-3">			
		</div>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="button" class="btn btn-primary radius" value="浏览器驱动程序路径设置" onclick="$('#driver-path').toggle();"/>
		</div>
	</div>
	<div id="driver-path" style="display:none;">
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">ChromeDriver路径：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text radius" name="chromeDriverPath" id="chromeDriverPath" value="{{{inputValue chromeDriverPath ''}}}">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">IEDriverPath路径：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text radius" name="ieDriverPath" id="ieDriverPath" value="{{{inputValue ieDriverPath ''}}}">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">OperaDriver路径：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text radius" name="operaDriverPath" id="operaDriverPath" value="{{{inputValue operaDriverPath ''}}}">
		</div>
	</div>
	</div>
	<div class="row cl">
		<div class="form-label col-xs-4 col-sm-3">			
		</div>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="button" class="btn btn-primary radius" value="浏览器执行路径设置" onclick="$('#excute-path').toggle();"/>
		</div>
	</div>
	<div id="excute-path" style="display:none;">
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">Chrome执行路径：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text radius" name="chromeExcutePath" id="chromeExcutePath" value="{{{inputValue chromeExcutePath ''}}}">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">IE执行路径：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text radius" name="ieExcutePath" id="ieExcutePath" value="{{{inputValue ieExcutePath ''}}}">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">Opera执行路径：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text radius" name="operaExcutePath" id="operaExcutePath" value="{{{inputValue operaExcutePath ''}}}">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">FireFox执行路径：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text radius" name="firefoxExcutePath" id="firefoxExcutePath" value="{{{inputValue firefoxExcutePath ''}}}">
		</div>
	</div>
	</div>
	
	<input type="hidden" id="layerIndex" />
	<input type="hidden" id="configId" value="{{configId}}"/>
	{{#if user}}
		<input type="hidden" id="user.userId" value="{{user.userId}}">
	{{/if}}	
	<div class="row cl">
		<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
			<button class="btn btn-success radius" type="button" id="update-suite-run-setting"><i class="Hui-iconfont">&#xe632;</i> 更新设置</button>
			<button class="btn btn-default radius" type="button" onclick="layer.close($(this).parents('form').find('#layerIndex').val());">&nbsp;&nbsp;关闭&nbsp;&nbsp;</button>
			<a mark-name="webTestConfig" class="btn btn-default radius explanation-mark"><i class="Hui-iconfont">&#xe6cd;</i></a>
		</div>
	</div>		
</form>	
</article>
</script>

<!-- webSuite.html 测试用例集 -->
<script id="web-suite-case-setting" type="text/x-handlebars-template">
<article class="page-container">
<form action="" method="post" class="form form-horizontal">
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">执行顺序：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text radius" name="execSeq" id="execSeq" value="{{{inputValue execSeq '1'}}}">			
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">分组名：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<input type="text" class="input-text radius" name="groupName" id="groupName" value="{{{inputValue groupName 'default'}}}">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">是否跳过执行：</label>
		<div class="formControls col-xs-8 col-sm-9">
			<span class="select-box radius"> 
				<select class="select" size="1" id="skipFlag" name="skipFlag" value="{{{inputValue skipFlag '0'}}}">
						<option value="0">否</option>
						<option value="1">是</option>						
				</select>
			</span>
		</div>
	</div>	
	<input type="hidden" id="layerIndex" />
	<input type="hidden" id="compId" value="{{compId}}"/>
	<input type="hidden" id="suiteId" value="{{suiteId}}"/>
	<input type="hidden" id="caseId" value="{{caseId}}"/>
	<div class="row cl">
		<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
			<button class="btn btn-success radius" type="button" id="update-setting"><i class="Hui-iconfont">&#xe632;</i> 更新配置</button>
			<button class="btn btn-default radius" type="button" onclick="layer.close($(this).parents('form').find('#layerIndex').val());">&nbsp;&nbsp;返回&nbsp;&nbsp;</button>
			<a mark-name="webSuiteCaseSetting" class="btn btn-default radius explanation-mark"><i class="Hui-iconfont">&#xe6cd;</i></a>
		</div>
	</div>		
</form>	
</article>
</script>


<!--自定义数据配置视图页面-->
<script id="custom-data-setting-view" type="text/x-handlebars-template">
    <article class="page-container" style="padding-top: 6px;">
        <form action="" method="post" class="form form-horizontal">
            <div class="row cl">
                <div class="formControls col-xs-12 col-sm-12">
                    {{#if remark}}<p style="color:red;">{{ remark }}</p>{{/if}}
                    <strong>{{title}}:&nbsp;&nbsp;</strong>
                    <button class="btn btn-primary radius" type="button" id="custom-data-setting-add-variable"><i class="Hui-iconfont">&#xe600;</i> 增加</button>&nbsp;&nbsp;
                    <button class="btn btn-danger radius" type="button" id="custom-data-setting-clear-all-varibale"><i class="Hui-iconfont">&#xe6e2;</i> 清除所有</button>
                    <br>
                    <div id="custom-data-setting-variables">
                        {{#if data}}
                        {{#each data}}
                        <div class="row cl">
                            <div class="form-label col-xs-5 col-sm-5">
                                <input type="text" class="input-text radius" value='{{@key}}'>
                            </div>
                            <div class="formControls col-xs-5 col-sm-5">
                                <input type="text" class="input-text radius" value='{{this}}'>
                            </div>
                            <div class="formControls col-xs-2 col-sm-2">
                                <a class="btn btn-default radius"><i class="Hui-iconfont">&#xe60b;</i></a>
                            </div>
                        </div>
                        {{/each}}
                        {{/if}}
                    </div>
                </div>
            </div>
            <input type="hidden" id="layerIndex"/>
            <div class="row cl" style="margin-top:18px;">
                <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                    <button class="btn btn-success radius" type="button" id="update-custom-data"><i class="Hui-iconfont">&#xe632;</i> 保存数据</button>
                    <button class="btn btn-default radius" type="button" onclick="layer.close($(this).parents('form').find('#layerIndex').val());">&nbsp;&nbsp;关闭&nbsp;&nbsp;</button>
                </div>
            </div>
        </form>
    </article>
</script>



<!-- 说明和提示的html模板 -->
<!-- explanation-mark-webstep-config web自动化测试步骤的配置-->
<script id="explanation-mark-webstep-config" type="text/x-handlebars-template">
<article class="page-container">
<div class="panel panel-default">
	<div class="panel-header">测试步骤配置说明</div>
	<div class="panel-body">
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3"><span class="label label-primary radius">窗口名称</span></label>
			<div class="formControls col-xs-8 col-sm-9">
				<p>给当前打开的窗口或者标签页起一个名称,接下来的步骤中的页面都会被绑定到该窗口;</p>
	 			<p>在同时开启多窗口的时候定位元素，会根据元素所在页面的绑定窗口来切换;</p>
	 			<p>如果一个窗口或者标签页没有被命名，在切换到另外的窗口的时候，该窗口会被关闭;</p>
				<p>如果有同名窗口时，默认会保存最近打开的窗口而关闭其他的.</p>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3"><span class="label label-primary radius">保存值名称</span></label>
			<div class="formControls col-xs-8 col-sm-9">
				<p>在操作步骤为<span class="label label-success radius"> save(保存值) </span>的时候，在获取到值时，会已该名称保存，
					如果该值未填写，系统则会自动命名一个不重复的key.</p>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3"><span class="label label-primary radius">是否截图</span></label>
			<div class="formControls col-xs-8 col-sm-9">
				<p>是否在步骤进行截图操作,默认不截图.</p>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3"><span class="label label-primary radius">执行步骤前等待时长</span></label>
			<div class="formControls col-xs-8 col-sm-9">
				<p>执行该步骤前等待时间，单位秒，可写小数.</p>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3"><span class="label label-primary radius">执行步骤后等待时长</span></label>
			<div class="formControls col-xs-8 col-sm-9">
				<p>执行该步骤后等待时间，单位秒，可写小数.</p>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3"><span class="label label-primary radius">清除浏览器缓存</span></label>
			<div class="formControls col-xs-8 col-sm-9">
				<p>执行该步骤前是否清楚浏览器缓存,默认不清除.</p>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3"><span class="label label-primary radius">清除文本框内容</span></label>
			<div class="formControls col-xs-8 col-sm-9">
				<p>在<span class="label label-success radius"> input(输入) </span>操作中,默认会先清除文本框中的内容,在输入指定内容.</p>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3"><span class="label label-primary radius">用例片段循环执行次数</span></label>
			<div class="formControls col-xs-8 col-sm-9">
				<p>在<span class="label label-success radius"> 执行用例片段 </span>的操作中,可以通过设置该值来循环执行多次.</p>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3"><span class="label label-primary radius">用例片段循环执行退出条件</span></label>
			<div class="formControls col-xs-8 col-sm-9">
				<p>在<span class="label label-success radius"> 执行用例片段 </span>的操作中,如果设置了需要循环执行多次,则默认的循环退出条件为：执行失败.</p>
				<p>可选择：执行失败时退出循环、执行成功时退出循环、执行完指定次数后退出循环.</p>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3"><span class="label label-primary radius">该步骤是否为控制条件</span></label>
			<div class="formControls col-xs-8 col-sm-9">
				<p>该步骤是否为控制条件，如果为true，则会根据该步骤执行的结果来决定执行下个步骤还是下下一个步骤;</p>
	 			<p>对于<span class="label label-success radius"> check(检查/断言) </span>步骤，在验证正确的时候，执行下一个步骤，验证错误的时候执行下下个步骤;</p>
	 			<p>对于其他步骤，在执行成功的情况下（没有报错）会执行下一个步骤，执行失败的时候执行下下个步骤.</p>
			</div>
		</div>
	</div>
</div>
</article>
</script>

<!--组合场景中保存变量中用关联规则-->
<script id="complex-scene-variable-relation-keyword" type="text/x-handlebars-template">
    <div class="page-container">
        <div class="row cl">
            <label class="form-label col-xs-5 col-sm-4">搜索范围：</label>
            <div class="formControls col-xs-7 col-sm-8">
			<span class="select-box radius">
				<select class="select" size="1" id="searchScope" name="searchScope" value="{{{inputValue searchScope 'body'}}}">
                        <option value="body">Body</option>
				</select>
			</span>
            </div>
        </div>
        <div class="row cl" style="margin-top: 14px;margin-bottom: 8px;">
            <label class="form-label col-xs-5 col-sm-4">左边界：</label>
            <div class="formControls col-xs-7 col-sm-8">
                <input type="text" class="input-text" id="LB" placeholder="关联左边界,可留空" value='{{{inputValue LB ""}}}'>
            </div>
        </div>
        <div class="row cl" style="margin-bottom: 8px;">
            <label class="form-label col-xs-5 col-sm-4">右边界：</label>
            <div class="formControls col-xs-7 col-sm-8">
                <input type="text" class="input-text" id="RB" placeholder="关联右边界,可留空" value='{{{inputValue RB ""}}}'>
            </div>
        </div>
        <div class="row cl" style="margin-bottom: 8px;">
            <label class="form-label col-xs-5 col-sm-4">偏移字符数：</label>
            <div class="formControls col-xs-7 col-sm-8">
                <input type="text" class="input-text" id="OFFSET" placeholder="左起偏移字符数" value='{{{inputValue OFFSET ""}}}'>
            </div>
        </div>
        <div class="row cl" style="margin-bottom: 8px;">
            <label class="form-label col-xs-5 col-sm-4">取值顺序(不需要请设置为1)：</label>
            <div class="formControls col-xs-7 col-sm-8">
                <input type="hidden" class="input-text" id="ORDER" value='{{{inputValue ORDER "1"}}}'/>
                <a style="text-decoration:none" class="ml-5" onClick="reduceSeq();" href="javascript:;" title="减少"><i class="Hui-iconfont">&#xe6a1;</i></a>&nbsp;&nbsp;<span id="objectSeqText" >{{{inputValue ORDER "1"}}}</span>&nbsp;<a style="text-decoration:none" class="ml-5" onClick="addSeq();" href="javascript:;" title="增加"><i class="Hui-iconfont">&#xe600;</i></a>
            </div>
        </div>
        <div class="row cl" style="margin-bottom: 8px;">
            <label class="form-label col-xs-5 col-sm-4">取值长度：</label>
            <div class="formControls col-xs-7 col-sm-8">
                <input type="text" class="input-text" id="LENGHT"  value='{{{inputValue LENGHT ""}}}' placeholder="左起截取的字符长度">
            </div>
        </div>
    </div>
</script>


<!-- data-pool -->
<script id="pool-data-item-name-value" type="text/x-handlebars-template">
    <article class="page-container">
        <form action="" method="post" class="form form-horizontal" id="form-pool-item-name-value">
            <input type="hidden" id="layerIndex"/>
            <div class="row cl">
                <div class="formControls col-xs-9 col-sm-10 col-xs-offset-3 col-sm-offset-2">
                    <span class="label label-danger radius"> 提示 </span> 你可以为此数据池类别设置自有的变量值，不同类别之间数据独立。
                </div>
            </div>
            <input type="hidden" name="itemId" value="{{ itemId }}" />
            {{#each objects}}
            <div class="row cl">
                <label class="form-label col-xs-5 col-sm-4">{{ name }}：</label>
                <div class="formControls col-xs-7 col-sm-8">
                    <input type="text" id="{{ name }}" class="input-text radius" name="{{ nameId }}" value='{{{inputValue value ""}}}' placeholder='{{{inputValue defaultValue ""}}}'>
                </div>
            </div>
            {{/each}}
            <div class="row cl">
                <div class="col-xs-7 col-sm-8 col-xs-offset-5 col-sm-offset-4">
                    <button class="btn btn-primary radius" type="button" id="save-item-name-value"><i class="Hui-iconfont">&#xe632;</i>保存更改</button>
                    <button class="btn btn-default radius" type="button" onclick="layer.close($(this).parents('form').find('#layerIndex').val());">&nbsp;&nbsp;关闭&nbsp;&nbsp;</button>
                </div>
            </div>
        </form>
    </article>
</script>